{% load i18n %}
{% load static %}

<html>
	<head>
		<link href="{% static 'css/bootstrap-fluid-adj.css' %}" rel="stylesheet">
		<link href="{% static 'css/bootstrap.min.css' %}" rel="stylesheet" media="screen">
		<link href="{% static 'css/bootstrap-responsive.css' %}" rel="stylesheet">
		
		<title>{% trans "New Project" %}</title>
	</head>
	
	<body>
		<div class="hero-unit">
			<div class="container">
				<form class="form-signin span8" id="project_form" method="post" action="/new_project/"
						  enctype="multipart/form-data">
						{% csrf_token %}
						<h2 class="form-signin-heading row">{% trans "Create your project" %}</h2>
						<br />

						{% for field in project_form.visible_fields %}
						<div>
							<div>
								{{ field.label_tag }}<br />
								{{ field }}<br />
							</div>
							<div>
								{% if field.errors %}
									<div class="text text-error">{{ field.errors }}</div>
								{% endif %}
							</div>
						</div>
						{% endfor %}			

						<br />
						<input class="btn btn-primary row" type="submit" name="submit" value={% trans "Create" %}>
					</form>
				</div>
			{% if messages %}
				{% for message in messages %}
					<p {% if message.tags %} class="alert alert-{{message.tags}}"{% endif %}>{{ message }}</p>
				{% endfor %}
			{% endif %}
		</div>
	</body>
</html>